import Koa from 'koa'
import bodyParser from 'koa-bodyparser'
import route from './router/index.js'
import { registryTemplate } from './render/books.js';
let app=new Koa();
app.use(bodyParser())
app.use(registryTemplate())
app.use(route)
app.listen(5000,()=>{
    console.log('http://localhost:5000');
    
})